<meta charset="UTF-8">
	<div class="content-wrapper" style='height: 100%;'>
    <section class="content-header">
      <span style="text-align:left;margin: -5px 0px 5px 0px;font-size: 18px;">
        	菜品编辑
      </span>
       <div class='butt' ng-click="jump_back()">返回</div> <!--jump('/dishesSetup')-->
      <div class='butt' ng-click='dishInforSave()'>保存</div> 
    </section>
    <div style='height: 90%;display: flex;width: calc(100% - 30px);padding: 0px 16px 12px 30px;font-size: 14px;font-family: "Microsoft YaHei", 微软雅黑, "Helvetica Neue", Helvetica, Arial, sans-serif;'><!--height: 100%;-->
    	
    		<div style='    width: 50%; padding-right: 0px;height: 100%;overflow: auto;'>
    				<div class='row1'>
    					<label style='color:#37C8D2;'>基本信息</label>
    				</div>
    				<div class='row1'>
    					<label style=''>条码</label>
    					<input id="barCode" type="text" ng-model='barCode' ng-change='barCodeChange()'>
    				</div>
    				<div class='row1'>
    					<label style=''>菜品类别</label>
    					<select  ng-model='category_id' ng-options='c.id as c.name for c in categorys'></select>
    				</div>
    				<div class='row1'>
    					<label style=''>菜品名称</label>
    					<input id="itemName" type="text" ng-model='name' ng-keyup='getPingyin(name)'>
    				</div>
    				<div class='row1'>
    					<label style=''>助记码</label>
    					<input id="shortName" type="text" ng-model='shortName'>
    				</div>
    				<div class='row1' style='position: relative;'>
    					<label >菜品单位</label>
    					<select style='width: calc(100% - 150px);flex: inherit;' ng-model='unitId' ng-options='u.id as u.name for u in units' ng-change='bianhua()'></select>
    					<span style='cursor: pointer;position: absolute;right: 20px;color: #3dc9d3;' ng-click='openUnitModal()'>单位维护</span>
    				</div>
    				<!--<div class='row1'>
    					<label style=''>售卖范围</label>
    					<select  ng-model='range' ng-options='r.name as r.name for r in ranges'></select>
    				</div>-->
    				<div class='row1'>
    					<label >售卖档口</label>
    					<select  ng-model='window' ng-options='win.id as win.name for win in windows'></select>
    				</div>
    				<div class='row1'>
    					<label >制作车间</label>
    					<select  ng-model='workshop_id' ng-options='workshop.id as workshop.name for workshop in workshops'></select>
    				</div>
    				<div class='row1'>
    					<label >制作工序</label>
    					<select  ng-model='procedure_id' ng-options='procedure.id as procedure.name for procedure in procedures'></select>
    				</div>
    				<div class='row1'>
    					<label style=''>制作时间</label>
    					<input id="workTime" type="text" ng-model='workTime' ><!--ng-change='workTimeChange()'-->
    					<span>分钟</span>
    				</div>
    				<div class='row1'>
    					<label style='padding: 0px;'>看板出品比例</label>
    					<span style='padding-left: 10px;margin-left: 5px;' >1</span>
    					<select style='width: calc(100% - 150px);flex: inherit;' ng-model='kanbanUnitId' ng-options='u.id as u.name for u in kanbanUnits' ></select>
    					<input style='border: 1px solid #ccc;margin: 0px 10px;' type="text" ng-model='unit_converter_ratio' >
    					<span ng-bind='UnitName'></span>
    				</div>
    				<div class='row1' ng-click='choiceChief($event)'>
    					<label >制作厨师</label>
    					<input ng-model='chiefId' style='display: none;'/>
    					<input  ng-model='chief'  id="chiefName" type="text" style="width:110px;" readonly="readonly" placeholder="选择厨师" >
    					<span style='color: #3dc9d3;'>点击更换厨师</span>
    				</div>
    				<div class='row1'>
    					<label style=''>制作方法</label>
    					<select  ng-model='methodId' ng-options='me.id as me.name for me in methods'></select>
    				</div>
    				<!--<div class='row1'>
    					<label style=''>加工时长</label>
    					<input id="processTime" type="text" ng-model='processTime' >
    				</div>-->
    				<div class='row1'>
    					<label style=''>口味</label>
    					<span ng-repeat='taste in tastes'>
    						<input type="checkbox" name='taste' ng-model='taste.checked' value='{{taste.id}}' />
    						<span>{{taste.name}}</span>
    					</span>
    					
    					<!--<select  id='tasteId' ng-model='tasteId' ng-options='taste.id as taste.name for taste in tastes'>
    					</select>-->
    				</div>
    				<div class='row1'>
    					<label style=''>颜色</label>
    					<span ng-repeat='color in colors'>
    						<input type="checkbox" name='color' ng-model='color.checked' value='{{color.id}}' />
    						<span>{{color.name}}</span>
    					</span>
    					<!--<select  id='colorId' ng-model='colorId' ng-options='color.id as color.name for color in colors'>
    					</select>-->
    				</div>
    				<div class='row1'>
    					<label style=''>形状</label>
    					<span ng-repeat='shape in shapes'>
    						<input type="checkbox" name='shape' ng-model='shape.checked' value='{{shape.id}}' />
    						<span>{{shape.name}}</span>
    					</span>
    				</div>
    				<!--<div class='row1'>
    					<label style=''>荤素</label>
    					<select  id='mvId' ng-model='mvId' ng-options='mv.id as mv.name for mv in meatAndVegetables'>
    					</select>
    				</div>-->
    				<!--<div class='row1'>
    					<label style=''>记重销售</label>
    					<select  id='weight' ng-model='weight' ng-options='w.id as w.name for w in weights'>
    					</select>
    				</div>-->
    				<div class='row1'>
    					<label style='flex: 0 0 125px;'>是否为快捷菜品</label>
    					 <div class="col-sm-9">
                            <input class='tgl tgl-flat' id='quickDish' type='checkbox' ng-model="quickDish">
    													<label class='tgl-btn' for='quickDish'></label>
                        </div>
    				</div>
    				<div class='row1' style='height: 90px;'>
    					<label >菜品简介</label>
    					<textarea id="remark"  ng-model='description'></textarea>
    				</div>
    		</div>
    		<div style='width: 50%;padding-left: 0px;margin-left: 40px;height: 100%;overflow: auto;'>
    				<div class='row1'>
    					<label style='color:#37C8D2;'>其他信息</label>
    				</div>
    				<div class='row1' style='height: 110px;'>
    					<label >营养成分</label>
    					<div style='flex: auto;padding-left: 10px;height: 100%;'>
    						<div style='width: 40%;display: inline-block;    margin: 10px 0px;'>
    							<span style='width: 40px;display: inline-block;text-align: right;'>能量</span>
    							<input  id="energy" type="number" ng-model='energy' style='flex: none;width: 50px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    							<span>%</span>
    						</div>
    						<div style='width: 55%;display: inline-block;    margin: 10px 0px;'>
    							<span style='width: 80px;display: inline-block;text-align: right;'>蛋白质</span>
    							<input  id="protein" type="number" ng-model='protein' style='flex: none;width:50px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    							<span>%</span>
    						</div>
    						<div style='width: 40%;display: inline-block;    margin: 10px 0px;'>
    							<span style='width: 40px;display: inline-block;text-align: right;'>脂肪</span>
    							<input  id="fat" type="number" ng-model='fat' style='flex: none;width: 50px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    							<span>%</span>
    						</div>
    						<div style='width: 55%;display: inline-block;    margin: 10px 0px;'>
    							<span style='width: 80px;display: inline-block;text-align: right;'>碳水化合物</span>
    							<input  id="carbohydrate" type="number" ng-model='carbohydrate' style='flex: none;width: 50px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    							<span>%</span>
    						</div>
    					</div>
    				</div>
    				<div class='row1'  style='min-height: 90px;position: relative;'>
    					<label style=''>标准成分</label>
    					<!--<textarea rows="3" id="material" class='backcolor' readonly ng-click='choiceMaterial($event)'>
    						<span ng-reapeat='m in maDatas'>{{m.material_name}}{{m.material_number}}{{m.material_unit}};</span>
    					</textarea>-->
    					<!--<div ng-click='choiceMaterial($event)' style='width: 100%;height: 100%;'>-->
    						<div data-toggle="modal" data-target="#selectMaterial" style='width: 100%;height: 100%;'>
    						<!--<span ng-repeat='outm in outValue' style='padding: 10px;display: inline-block;'>{{outm.material_name}}{{outm.material_number}}{{outm.material_unit}};</span>-->
    						<span ng-repeat='outm in maDatas' style='padding: 10px;display: inline-block;'>{{outm.name}}：{{outm.num}}{{outm.unit}};</span>
    					</div>
    					<span style='position: absolute;right: 10px;color: #3dc9d3;' >点击选取原料</span>
    				</div>
    				<div class='row1'>
    					<label style=''>原料成本</label>
    					<input ng-model='material_fee'  type="text" id="itemCost" readonly="readonly" 
    						style='flex: none;width: 100px;margin-right: 5px;' >
    					<span>元</span>
    				</div>
    				<div class='row1'>
    					<label style=''>其他成本</label>
    					<input  id="other_chengben" type="number" ng-model='other_chengben' ng-change="getCostAndProfit()"
    						style='flex: none;width: 100px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    					<span>元</span>
    				</div>
    				<div class='row1'>
    					<label style=''>总成本</label>
    					<input  id="total_cost"  readonly ng-model='total_cost' 
    						style='flex: none;width: 100px;margin-right: 5px;' >
    					<span>元</span>
    					<label style='font-size: 12px;color: #3dc9d3;' ng-click='explain2()'>毛利率</label>
    					<input  id="profit" readonly=""  type="number" ng-model='profit' 
    						style='flex: none;width: 60px;margin-right: 5px;' ><!--ng-change="valChange()"-->
    				</div>
    				<div class='row1'>
    					<label style=''>价格</label>
    					<input  id="price" type="number" ng-model='price' ng-change="getCostAndProfit()"
    						style='flex: none;width: 100px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    					<span>元</span>
    					<!--<label style='font-size: 12px;color: #aaa;'>建议售价</label>
    					<input  id="advisePrice" type="number" ng-model='advisePrice' readonly 
    						style='flex: none;width: 60px;margin-right: 5px;    border: none;' >-->
    				</div>
    				<div class='row1'>
    					<label style=''>管理费</label>
    					<input  id="manage_fee" type="number" ng-model='manage_fee' 
    						style='flex: none;width: 100px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    					<span>元</span>
    				</div>
    				<div class='row1'>
    					<label style=''>能源费</label>
    					<input  id="energe_fee" type="number" ng-model='energe_fee' 
    						style='flex: none;width: 100px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    					<span>元</span>
    				</div>
    				<!--<div class='row1'>
    					<label style=''>其他费用</label>
    					<input  id="others_fee" type="number" ng-model='others_fee' 
    						style='flex: none;width: 100px;margin-right: 5px;    border: 1px solid #bfbfbf;' >
    					<span>元</span>
    				</div>-->
    				
    				<div class='row1' style='position: relative;'>
    					<label style=''>销售系数</label>
    					<input  type='number' id="coefficient" type="text" ng-model='sale_rate'
    						style='flex: none;width: 100px;margin-right: 5px;border: 1px solid #bfbfbf;'>
    						<span style='cursor: pointer;position: absolute;right: 20px;color: #3dc9d3;' ng-click='explain()'>说明</span>
    				</div>
    				
    		</div>
    		 
    </div> 
</div>

<!-- 选择厨师modal -->
<div class="modal fade" id="selectChief" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center" >选择厨师</h4>
      </div>
     <!--表格-->
              	<div class="row">
              	<table style='margin: 0px 5% 0px 5%; width: 90%; position: relative;overflow: auto; display: block;background: #ffffff;height:440px' id="example1" 
              		class="table table-bordered table-striped dataTable" role="grid" aria-describedby="example1_info"><!--min-height: 300px; max-height: 500px;-->
                <thead style='display: inline-table;width: 100%;'>
	                <tr role="row">
	                	<th  style="width: 10%;">姓名</th>
	                </tr>
                </thead>
              <tbody id='chiefSelected' style='display: inline-table;width: 100%;' >
		                <tr ng-click="chiefSelected($event,item.id,item.name)" style='position: relative;width: 100%;display: inline-table;' ng-class="{even:!$even, odd:!$odd}" ng-repeat="item in chiefs">
			                  <td style="width: 10%;">{{item.name}}</td>
		                </tr>
                </tbody>
                <tfoot>
                </tfoot>
              </table>
              </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-success btn-lg" ng-click="trueSelectChief()">确定</button>
      </div>
    </div>
  </div>
</div>

<!-- 选择原料modal -->
<div class="modal fade" id="selectMaterial" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document" style='margin: 100px auto;width: 80%;height: 70%;'>
    <div class="modal-content" style='height: 90%;'>
      <div class="modal-header" style='border-bottom: none;'>
        <!--button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
        <h4 class="modal-title" style="text-align:center" >菜品原料标准成分</h4>
      </div>
     <!--表格-->
			<div class="box" style='width: 96%;height: 76%;margin: 0px 2%;display: inline-block;display: flex;font-size: 16px;'>
				<div style='width: 15%; border: 1px solid #d2d6de;height: 100%;'>
					<div ng-click='getAll($event)' style='width: 100%;height: 40px;border-bottom: 1px solid #d2d6de;line-height: 40px;text-indent: 20px;cursor: pointer;'>全部类别</div>
					<div style='width: 100%;height: calc(100% - 40px);overflow: auto;'>
						<div ng-click='sMaterial(m.id)' style='width: 100%;height: 40px;border-bottom: 1px solid #d2d6de;line-height: 40px;text-indent: 20px;cursor: pointer;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;' ng-repeat="m in materielsFenLei  ">{{m.name}}</div>
					</div>
				</div>
				<div style='width: 25%; border: 1px solid #d2d6de;height: 100%;'>
					<div style='width: 100%;height: 40px;border-bottom: 1px solid #d2d6de;'>
						<input type="text" ng-model='cardInfor' class='goods' placeholder="物料查询"/>
					</div>
					<div style='width: 100%;height: calc(100% - 40px);overflow: auto;'>
						<div  ng-click='cmaterial($event,m.id,m.name,m.unit,m.material_cost)' style='width: 100%;height: 40px;border-bottom: 1px solid #d2d6de;
							line-height: 40px;text-indent: 20px;cursor: pointer;' ng-repeat="m in smallCategorys">
							<p style="display: inline-block;width: calc(100% - 65px);text-overflow: ellipsis;overflow: hidden;white-space: nowrap;">{{m.name}}</p>
							<span style="width: 40px;height: 100%;float: right;">
								<img src='../imgs/right.png' style='width: 20px;'/>
							</span>
						</div>
					</div>
				</div>
				<div style='width: 60%; border: 1px solid #d2d6de;height: 100%;'>
					
					<div style='width: 100%;height: 40px;border-bottom: 1px solid #d2d6de;display: inline-flex;'>
						<div id='zhu' ng-click='clickMainFu(1)' class='aattvv pointer' >主料</div>
						<div id='fu' ng-click='clickMainFu(0)' class='pointer'>辅料</div>
					</div>
					<div style='width: 100%;height: 40px;border-bottom: 1px solid #d2d6de;'>
						<div class='b_header' >原料名称</div>
						<div class='b_header' >用料数量</div>
						<div class='b_header' >用料单位</div>
						<div class='b_header' >操作</div>
					</div>
					<div id='maDataList' style='width: 100%;height: calc(100% - 80px);overflow: auto;'>
						<div ng-hide='m.is_major!=is_major' class='maDataList_div' style='display: inline-flex;width: 100%;height: 40px;border-bottom: 1px solid #d2d6de;' ng-repeat='m in maDatas' >
							<div class='b_header maDataList_name' >{{m.name}}</div>
							<div class='b_header' >
								<input  type="number" ng-model='m.num' style='height: 28px; width: 90%;margin-left: 20px;text-indent: 20px;'/><!--class='maDataList_div_input'-->
							</div>
							<div class='b_header ' >{{m.unit}}</div>
							<div class='b_header' ><img ng-click='delThis($event,m.name)' src='../imgs/del.png' style='width: 15px;cursor: pointer;margin-left: 10px;'/></div>
						</div>
					</div>
				</div>
				
	      </div>
      <div class="modal-footer" style='border-top: none;'>
        <button type="button" class="btn btn-default btn-lg pull-left" ng-click="cancle_edit()">取消</button>
        <button type="button" class="btn btn-success btn-lg" ng-click="material_true()">确定</button><!--ng-click="material_true()"-->
      </div>
    </div>
  </div>
</div>

<!-- 单位维护modal -->
<div class="modal fade" id="unitWeihu" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document" style='margin: 100px auto;width: 40%;height: 45%;'>
    <div class="modal-content" style='height: 90%;box-shadow: 0 0px 0px rgba(0, 0, 0, 0.125);'>
      <div class="modal-header" style='border-bottom: none;'>
        <!--button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>-->
        <h4 class="modal-title" style="text-align:center" >单位维护</h4>
      </div>
     <!--表格-->
				<div style='width: 94%;margin: 0 auto;border: 1px solid #ccc;height: calc(100% - 60px);
    background-color: #ffffff;'>
						<div style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 40px;font-size: 18px;font-weight: bold;'>
							单位名称
							<button ng-click='addUnit()' class="btn btn-primary" style='float: right;margin: 2px 5px 0px 0px;padding: 6px 10px;'><i class="fa fa-plus"></i></button>
						</div>
						<div style='width: 100%;height: calc(100% - 40px);overflow: auto;'>
								<div  class='oneLevel'  style='width: 100%;height: 40px;border-bottom: 1px solid #ccc;line-height: 40px;text-indent: 20px;cursor: pointer;' ng-repeat="unit in units ">
									<span style='float: left;margin-left: 10px;width: 120px;text-align: center;'>{{unit.name}}</span>
									<div class='leveldiv' style='display: inline-block;float: right;margin-right: 20px;'>
											<!--<a href="" class="btn btn-lg edit" style="padding:0px;margin-right: -10px;" ng-click="AuthorityEdit(authority.id,authority.name,authority.path,authority.level)"><i class="fa fa-edit"></i></a>
               	 			<a href="" class="btn btn-lg del" style="padding:0px"  ng-click="AuthorityDel(authority.id,authority.name,authority.path,authority.level)"><i class="fa  fa-close"></i></a>-->
											<i style='margin-left: 40px;' class="fa fa-edit edit" ng-click="unitEdit(unit.id,unit.name,unit.isSaleByWeight)"></i>
											<i class="fa  fa-close del" ng-click="unitDel(unit.id,unit.name)"></i>
									</div>
								</div>
						</div>
				</div>
				
	      </div>
      <div class="modal-footer" style='border-top: none;background-color: #FFFFFF;'>
        <button type="button" class="btn btn-default btn-lg pull-left" ng-click="unit_true()" >取消</button><!--data-dismiss="modal"-->
        <button type="button"  class="btn btn-success btn-lg" ng-click="unit_true()">确定</button>
      </div>
    </div>
  </div>
</div>

<!-- 模态框 新增单位 -->
<div class="modal fade" id="addUnit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">新增单位</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	  	<div class="form-group">
	                <label for="inputEmail3" class="col-sm-2 control-label">单位名称</label>
	                <div class="col-sm-10">
	                    <input type="text" class="form-control" ng-model="unitName" ng-blur="judgeShow()" >
	                    <span style="color: red;" ng-show="showIt"><i class="fa fa-close"></i>单位名称不能为空</span>
	                     <!--<input type="text" class="form-control" placeholder="类别名称" ng-model="categoryName" ng-required="true">-->
	                </div>
	            </div>
	            <div class="form-group" style='display: flex;padding-left: 20px;'>
					<label style='flex: 0 0 125px;'>是否为记重单位</label>
					 <div class="col-sm-9">
                        <input class='tgl tgl-flat' id='isWeight' type='checkbox' ng-model="isWeight">
													<label class='tgl-btn' for='isWeight'></label>
                    </div>
				</div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="addUnit_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>

<!-- 模态框 单位维护 -->
<div class="modal fade" id="updateUnit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">单位维护</h4>
      </div>
      <from>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	  	<div class="form-group">
	                <label for="inputEmail3" class="col-sm-2 control-label">单位名称</label>
	                <div class="col-sm-10">
	                    <input type="text" class="form-control" ng-model="unitName" ng-blur="judgeShow()" >
	                    <span style="color: red;" ng-show="showIt"><i class="fa fa-close"></i>单位名称不能为空</span>
	                     <!--<input type="text" class="form-control" placeholder="类别名称" ng-model="categoryName" ng-required="true">-->
	                </div>
	            </div>
	            <div class="form-group" style='display: flex;padding-left: 20px;'>
					<label style='flex: 0 0 125px;'>是否为记重单位</label>
					 <div class="col-sm-9">
                        <input class='tgl tgl-flat' id='isWeight' type='checkbox' ng-model="isWeight">
													<label class='tgl-btn' for='isWeight'></label>
                    </div>
				</div>
         </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="submit" class="btn btn-success btn-lg" ng-click="updateUnit_true();">确定</button>
      </div>
      </from>
    </div>
  </div>
</div>

<!-- 删除单位 -->
  	<div class="modal fade" id="delUnit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" style="text-align:center">提示</h4>
      </div>
      <div class="modal-body form-horizontal">
        <div class="box-body">
           	确定要删除&nbsp;&nbsp;&nbsp;&nbsp;<span ng-bind="unitName"></span>&nbsp;&nbsp;&nbsp;&nbsp;吗？
        </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default btn-lg pull-left" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-success btn-lg" ng-click="del_unit(unitId);">确定</button>
      </div>
    </div>
  </div>
</div>

<style>
	.row1{    display: flex;margin-bottom: -1px;border: 1px solid #ddd;align-items: center;
   			 height: 45px;padding-left: 12px;padding-right: 12px;background-color: #fff;}
   	.row1 > label {  flex: 0 0 84px;text-align: right;padding-right: 12px;}
   	.row1 textarea { flex: auto;border: none;outline: none;}
   	textarea { padding: 10px 10px;resize: none;}
   	.row1 select { flex: auto; border: none; outline: none;}
   	.row1 select { padding-left: 5px;}
   	.row1 input { flex: auto; border: none; outline: none;    padding-left: 10px;}
   	.backcolor{background-color: #ECF0F5;}
   	.space{padding-left:2px;padding-right:2px;}
	.box{border-top:1px solid #d2d6de;}
	.pagination{margin:0;}
	.odd{background-color: #f9f9f9 !important;}
	.even{background-color: transparent !important;}
	.btn{    padding: 10px 12px;}
	.goods{    height: 30px;margin: 6px 10%;line-height: 20px;padding: 5px;width: 80%;border: 1px solid #ccc;border-radius: 3px;}
	.primary-color { color: #37C8D2;}
	.b_header{width: 24%;height: 40px;line-height: 40px;text-align: center;display: inline-block;}
	.maDataList_div_input{height: 28px; width: 90%;  margin-left: 20px;}
	.butt{float: right;width: 60px;color: #FFFFFF;background-color: #37C8D2;border: 1px solid #37C8D2;cursor: pointer;
    border-radius: 4px;white-space: nowrap;text-align:center;height: 30px;line-height: 30px;margin: -5px 35px 5px 5px;}
    .pointer{width: 50%;height: 100%;text-align: center;line-height: 40px;display: inline-block;cursor: pointer;}
    .aattvv{color: #FFFFFF;background-color: #37C8D2;}
</style>
